package com.colin.aiyi.presenter;

import android.support.design.widget.TabLayout;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.colin.aiyi.dao.IService;
import com.colin.aiyi.presenter.Interface.Callback;
import com.colin.aiyi.presenter.Interface.IPresenter;
import com.flyco.tablayout.SegmentTabLayout;
import com.flyco.tablayout.listener.OnTabSelectListener;
import com.google.gson.Gson;

import org.greenrobot.eventbus.EventBus;

/**
 * Created by hl on 2017/6/9.
 */

public  abstract class AbsP implements IPresenter,Callback,  BaseQuickAdapter.OnItemChildClickListener,View.OnClickListener
        ,BaseQuickAdapter.OnItemClickListener,BaseQuickAdapter.RequestLoadMoreListener,SwipeRefreshLayout.OnRefreshListener,OnTabSelectListener{

    public IService iService;
    public Gson gson=new Gson();
    public  <E > void sendMsgToView(E e){
        EventBus.getDefault().post(e);
    }
    public  <E > void sendMsgToView(Class<E> e,String json){
        E baseResponse=gson.fromJson(json, e);
        if (baseResponse!=null)
        {
            EventBus.getDefault().post(baseResponse);
        }
    }

    @Override
    public void onRefresh() {

    }

    @Override
    public void onSuccess(Object t) {

    }



    @Override
    public void onFailed(Exception e) {

    }



    @Override
    public <V> void discourseList(V v) {

    }

    @Override
    public <V> void discourseLikeList(V v) {

    }

    @Override
    public <V> void say_list(V v) {

    }

    @Override
    public <V> void say_vipList(V v) {

    }

    @Override
    public <V> void say_watchList(V v) {

    }

    @Override
    public <V> void say_sayLikeList(V v) {

    }

    @Override
    public <V> void say_getDetail(V v) {

    }

    @Override
    public <V> void say_commentList(V v) {

    }

    @Override
    public <V> void say_watch(V v) {

    }

    @Override
    public <V> void say_comment(V v) {

    }

    @Override
    public <V> void like_doLike(V v) {

    }

    @Override
    public <V> void base_getListByCode(V v) {

    }

    @Override
    public <V> void findCityBytParent(V v) {

    }

    @Override
    public <V> void audio_detail(V v) {

    }

    @Override
    public <V> void audio_update(V v) {

    }

    @Override
    public <V> void audio_save(V v) {

    }

    @Override
    public <V> void activity_list(V v) {

    }

    @Override
    public <V> void activity_getDetail(V v) {

    }

    @Override
    public <V> void register_sendCode(V v) {

    }

    @Override
    public <V> void bind_sendCode(V v) {

    }

    @Override
    public <V> void forgetPassword_sendCode(V v) {

    }

    @Override
    public <V> void login_forgetPassword(V v) {

    }

    @Override
    public <V> void updatePassword_sendCode(V v) {

    }

    @Override
    public <V> void user_updatePassword(V v) {

    }

    @Override
    public <V> void login_out_bind(V v) {

    }

    @Override
    public <V> void login_register(V v) {

    }

    @Override
    public <V> void login_login(V v) {

    }

    @Override
    public <V> void user_getUserInfo(V v) {

    }

    @Override
    public <V> void user_saveUserInfo(V v) {

    }

    @Override
    public <V> void user_uploadImg(V v) {

    }

    @Override
    public <V> void feedback_save(V v) {

    }

    @Override
    public <V> void login_out_noBind(V v) {

    }

    @Override
    public <V> void pushMessage_list(V v) {

    }

    @Override
    public <V> void pushMessage_read(V v) {

    }

    @Override
    public <V> void pushMessage_delete(V v) {

    }

    @Override
    public <V> void pushMessage_detail(V v) {

    }

    @Override
    public void onLoadMoreRequested() {

    }

    @Override
    public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {

    }

    @Override
    public void onItemClick(BaseQuickAdapter adapter, View view, int position) {

    }


    @Override
    public <V> void setIView(V v) {

    }

    @Override
    public void onTabSelect(int position) {

    }

    @Override
    public void onTabReselect(int position) {

    }

    @Override
    public void onClick(View v) {

    }

    @Override
    public <V> void discourseListOne(V v) {

    }


    @Override
    public <V> void getOpenId(V v) {

    }

    @Override
    public <V> void checkWXLogin(V v) {

    }
}
